package com.youhome.model;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import lombok.Builder;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

@Data
@ApiModel
@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class BUser {
    private Long userId;

    private String phone;

    private String username;

    private String password;

    private Date ctime;

    private Date utime;

    private Boolean enabled;

    private String photo;

    private Integer reportCount;

    private List<BRole> roles;

    private Date lastPasswordResetDate;

}